package com.enjoyor.soa.traffic.rest.tsms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.tsms.PoliceCallNameDto;
import com.enjoyor.soa.traffic.api.service.dubbo.tsms.IDubboPoliceCallNameService;
import com.enjoyor.soa.traffic.rest.tsms.dubbo.IPoliceCallNameConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class PoliceCallNameConsumeService implements IPoliceCallNameConsumeService{
	@Reference(version = "1.0.0", timeout = 10000)
	//@Reference(version = "1.0.0", timeout = 10000, url="dubbo://192.168.56.8:21241")
	private IDubboPoliceCallNameService iDubboPoliceCallNameService;
	@Override
	public ResultPojo getPoliceCallNamePage(Page page, String postId, String policeId, String callId,
			String executeTaskId) {
		// TODO Auto-generated method stub
		return iDubboPoliceCallNameService.getPoliceCallNamePage(page, postId, policeId, callId, executeTaskId);
	}

	@Override
	public ResultPojo getPoliceCallNameList(String postId, String policeId, String callId, String executeTaskId) {
		// TODO Auto-generated method stub
		return iDubboPoliceCallNameService.getPoliceCallNameList(postId, policeId, callId, executeTaskId);
	}

	@Override
	public ResultPojo insertPoliceCallName(PoliceCallNameDto policeCallNameDto, String personName) {
		// TODO Auto-generated method stub
		return iDubboPoliceCallNameService.insertPoliceCallName(policeCallNameDto, personName);
	}

	@Override
	public ResultPojo updatePoliceCallName(PoliceCallNameDto policeCallNameDto, String personName) {
		// TODO Auto-generated method stub
		return iDubboPoliceCallNameService.updatePoliceCallName(policeCallNameDto, personName);
	}

	@Override
	public ResultPojo deletePoliceCallName(String callId, String personName) {
		// TODO Auto-generated method stub
		return iDubboPoliceCallNameService.deletePoliceCallName(callId, personName);
	}

}
